<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title></title>    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/application.css"></c:url>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/css/form.css"></c:url>">
    
    <script type="text/javascript">
     function $(elementId)
                {  
	              return document.getElementById(elementId);
                 }


	function dateform(){

                   var y = $("login_pwd").value;
			       var z = $("realname").value;
                    

			       if (y==""||z=="") {
			                alert("请把信息填完整！");
			                return false; 
			                }  			                             
                                       
	       var out="修改成功！";
	       alert(out);             
	        return   true;
	        }                        
                
	</script>
  </head>
  
  <body>
    <form action="<c:url value="/managerMgr?act=update"/>" method="post" onsubmit="return dateform()">     
      <input type="hidden" name="login_id" value="${manager.loginId}"/>
      <div class="headTitle">&gt;&gt;新增管理员</div>
      <div class="groupline" style="margin-bottom:5px">管理员信息</div>
      <div>
        <ul>
          <li>
            <span class="lableFont" >管理员账号：</span> ${manager.loginId}           
          </li>
        </ul>
      </div>
       <div>
        <ul>
          <li>
            <span class="lableFont">管理员密码：</span>
            <input type="text" class="text" name="login_pwd"  size="40" value="${manager.loginPwd}"/>
          </li>
        </ul>
      </div>
       <div>
        <ul>
          <li>
            <span class="lableFont">管理员姓名：</span>
            <input type="text" class="text" name="realname"  size="40" value="${manager.realName}"/>
          </li>
        </ul>
      </div>
      <div class="submitDiv">
        <input type="submit" value="修改账户"/>
        <input type="reset" value="取消重写"/>
      </div>
    </form>
  </body>
</html>
